<%-- 
    Document   : listaEstadias
    Created on : 12/07/2012, 17:12:17
    Author     : davi
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Estadias</h1>
        <jsp:useBean id="dao" class="model.estadia.EstadiaDAO"/>
        
        <c:forEach var="item" items="${dao.listar()}">
            
            ${item.placa} || ${item.carro.cliente.nome}<br/>
        </c:forEach>
        
        
        
    </body>
</html>
